﻿<%@ Page Title="Opret forestillinger" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" 
    CodeBehind="CreateShow.aspx.cs" Inherits="cinetoona.CreateShow" %>
<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div id="ResWrap">
        <h2>Opret forestilling:</h2>
        <asp:Label ID="dateLabel" runat="server" Text="Bio Sal"></asp:Label><br />
        <asp:DropDownList ID="TheaterDropDownList" runat="server" Width="272px"></asp:DropDownList><br />
        
        <asp:Label ID="Label1" runat="server" Text="Film"></asp:Label><br />
        <asp:DropDownList ID="MovieDropDownList" runat="server" Width="272px"></asp:DropDownList><br />
        
        <asp:Label ID="StartLabel" runat="server" Text="Label">Start Tid:</asp:Label><br />
        <asp:TextBox ID="StartTimeTextBox" runat="server" Width="272px"></asp:TextBox><br />

        <asp:Label ID="Thickets" runat="server" Text="Thickets">Antal Billter:</asp:Label><br />
        <asp:TextBox ID="ThicketTextBox" runat="server" Width="272px"></asp:TextBox><br />

        <asp:RegularExpressionValidator ID="DateRegularExpressionValidator" 
                    runat="server" ControlToValidate="StartTimeTextBox" 
                    ErrorMessage="DateFormat xx/xx/xxxx" 
                    ValidationExpression="((0[1-9]|[12][0-9]|3[01])[/]((0[1-9]|1[012])[/])?)?(19|20)\d\d" 
                    ValidationGroup="1">
        </asp:RegularExpressionValidator>

        <asp:Button ID="CreateShowButton" runat="server" Text="Opret Show" Width="272px" onclick="CreateShowButton_Click" />
   </div>

   <div id="delShow">
   <h2>Slet forestilling:</h2>
   
   <asp:Label ID="Label2" runat="server" Text="Film"></asp:Label><br />
   <asp:DropDownList ID="MovieDropDownList1" runat="server" Width="272px"></asp:DropDownList><br />
        

       <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
           ContextTypeName="cinetoona.DataAccessDataContext" EnableDelete="True" 
           EnableUpdate="True" EntityTypeName="" TableName="Shows">
       </asp:LinqDataSource>
       <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
           DataKeyNames="ShowID" DataSourceID="LinqDataSource1">
           <Columns>
               <asp:BoundField DataField="ShowID" HeaderText="ShowID" InsertVisible="False" 
                   ReadOnly="True" SortExpression="ShowID" />
               <asp:BoundField DataField="TheaterID" HeaderText="TheaterID" 
                   SortExpression="TheaterID" />
               <asp:BoundField DataField="MovieID" HeaderText="MovieID" 
                   SortExpression="MovieID" />
               <asp:BoundField DataField="Start" HeaderText="Start" SortExpression="Start" />
               <asp:BoundField DataField="Tickets" HeaderText="Tickets" 
                   SortExpression="Tickets" />
           </Columns>
       </asp:GridView>
        

   </div>

</asp:Content>
